<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>米行域名批量交易平台</title>
<include file="./Public/public/public.html" />
<style>
.mousactive {
	background-color: #FF6524;
	color: #fff;
}
</style>
<link href="{$app_path}{$static_path}/css/Home.css" rel="stylesheet"
	type="text/css" />
<script src="{$app_path}{$static_path}/js/home.js"></script>
<script src="{$app_path}{$static_path}/js/jquery.reveal.js"></script>
</head>
<body id="nv_member" class="pg_CURMODULE" onkeydown="if(event.keyCode==27) return false;">
<include file="./Public/public/top.html" />
<!--网页主体内容开始-->
<div id="wp" class="wp">
<link href="{$app_path}{$static_path}/css/style.css?v=1.1" rel="stylesheet" type="text/css">
<link href="{$app_path}{$static_path}/css/indexbanner2.css" rel="stylesheet" type="text/css">
<link href="{$app_path}{$static_path}/css/user-center.css" rel="stylesheet" type="text/css">
<link href="{$app_path}{$static_path}/css/reveal.css" rel="stylesheet" type="text/css">
<link href="{$app_path}{$static_path}/css/global.css" rel="stylesheet" type="text/css">
<div class="qtcontent menuhelp">
  <div class="intro">
    <div class="normalTitle">
      <h2>个人中心</h2>
    </div>
    <div class="Content2"> 
     <!--分类-->
      <ul id="menu"> 
        <li>
          <a class="nav-header active">
          <i class="icon-angle-right"></i>个人中心</a>
          <ul class="ckit" style="display:block;">
			<li><a href="{:U('Center/index')}">个人信息</a></li>
			<li><a href="{:U('Center/wxgzhlist')}">公众号管理</a></li>
			<li class="selected"><a href="{:U('Center/mky')}">MD5密钥</a></li>
			<li><a href="{:U('Center/wxreqlog')}">请求日志</a></li>
			<li><a href="{:U('Center/workorders')}">我的工单</a></li>
          </ul>
        </li>
      </ul>
     <!--内容-->
      <div class="content3" style="min-height:800px">
                <h3>个人信息</h3>
                <div class="cnt-tips">
                  <p>温馨提示：此秘钥为访问服务器接口凭证,请妥善保管，若泄露或丢失将无法连接我们的服务器获取采集参数</p>
                </div>   
                <div class="split-dot mt10 mb10"></div>
                <div class="row ">
                  <div class="key w55"><i class="fa fa-user"></i>会员ID：{$_SESSION['id']}</div>
                  <div class="value w30"> 
                  </div>
                  <div class="clr"> </div>
                </div>
                <div class="row ">
                  <div class="key w55"><i class="fa fa-transgender-alt"></i>秘钥Key：
				    		{$md5key}
		    	 	                   </div>
                  <div class="value w30">
				    		<a action="bind">修改</a>
                  </div>
                  <div class="clr"> </div>
                </div>
      </div>
      <div class="clr"></div>
    </div>
  </div>
</div>

<div popup="bindDiv" class="reveal-modal medium">
  <a class="close-reveal-modal" action="closeModal">×</a>
    <h3 id="updaH3">修改接口请求秘钥KEY</h3>
    <div>
    <form method="post" action="{:U('Center/updatekey')}" id="updateUserInfo">
       	<input type="hidden" id="sendEmailUrl" value="/user/sendemailmes.html">
        <div class="form-row form-row-s mt20">
        <div><span style="color:red;">注:若修改此秘钥需要同步更新您数据库中wx_key表  </span></div>
        <br/>
        <div class="input-box w65">
        <textarea style="outline:#ededf1 Solid 2px;" rows="6" cols="50" name="key" id="texkeyid"></textarea><br/>
        
		</div>
        <div class="clr"></div>
    </div>   
    <div class="split-dot mb20 mt20 text-center"></div>
    <div class="form-row form-row-s">
        <a action="confirm" class=" button button-blue w45 fl" style="width:160px;">确认</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <a action="cancel" class=" button button-gray w45 fr" style="width:160px;">取消</a>
        <div class="clr"></div>
    </div>
    </form></div>
</div>
<div class="reveal-modal-bg" style="display: none;"></div>

<script type="text/javascript">
 $(".nav-header").click(function(){
  $(".ckit").each(function(){
    $(this).slideUp('normal');
 }); 
   $(".nav-header").each(function(){
    $(this).removeClass('active');
 }); 
  $(this).addClass("active");
  $(this).next(".ckit").slideDown('normal');
});
 $(".selected").parent(".ckit").slideDown(0);
  $(".selected").parent(".ckit").prev(".nav-header").addClass("active");
  
  //点击弹出绑定邮箱
  $('[action="bind"]').click(function(){
    $('[popup="bindDiv"]').reveal();
  });   
  $('[action="confirm"]').click(function(){
	  if(($("#texkeyid").val()).length>0){
		  $("#updateUserInfo").submit();
	  }
  });
</script>
</div>
<include file="./Public/public/footer.html" />
</body>
</html>